External Libraries
Some CygNet library objects and functions are available by default when scripting in CygNet Studio and the HSS, and some must be included as separate COM components.
Included Objects
- CxScript.GlobalFunctions (SetPoint, SendUISCommand, GetFacilityInfo, etc.)
- CxScript.Points - this object is called Points, although other Points objects can be created, as well.
- CxScript.Facilities - this object is called Facilities (not included in CygNet Studio).
- CxScript.UpdateTimer - this object is called Timer (not included in CygNet Studio).
Other Libraries
- CygNet VHS Automation Library (CxVhs) — used for accessing point data from a Value History Service.
- CygNet UIS Automation Library (CxUis) — used for sending Universal Interface Service commands and getting/sending device data.
- CygNet Group Service Automation Library (CxGrp) — used for getting information about group nodes and hierarchies from a Group Service.
- CygNet DDS Automation Library (CxDds) — used for communication/remote device data retrievals from a Device Definition Service.
- Other CygNet Script (CxScript) objects
The inclusion of external libraries, CygNet or otherwise, is handled by the VBScript CreateObject method. This function requires that you know the library and object names. Some standard non-CygNet libraries that are useful in scripting are the file system object (CxScript.FileSystemObject) for accessing and writing to files, and XML parsers such as the Microsoft XML Document object (Msxml2.DOMDocument).
Example
The following example shows how to create a Facilities object.
Sub MyMethod()
Dim objFacilities
Set objFacilities = CreateObject("CxScript.Facilities")
... code ...
End Sub
See your CygNet system administrator to determine which CygNet libraries are available.

